<ul id="myTab" class="nav nav-tabs">
    <li class="active" id="tab_1"><a href="#shop_choose" data-toggle="tab">店铺选择</a></li>
    <li  id="tab_2"><a href="#module" data-toggle="tab">模板内容</a></li>
    <li  id="tab_3"><a href="#others" data-toggle="tab">其他信息</a></li>
</ul>
 <form id="add_form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="{:url('add')}">
    <div id="myTabContent" class="tab-content" style="padding-top: 20px">
        <div id='shop_choose' class="tab-pane fade in active">
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">{:__('Platform_type')}:</label>
                <div class="col-xs-12 col-sm-8">
                    <select class="form-control" name="row[platform_type]" data-rule="required" id="c-platform_type" >
                        <option value="3">不限</option>
                        <option value="1">天猫</option>
                        <option value="2">淘宝</option>
                    </select>
                </div>
            </div>
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">{:__('Shop_name')}:</label>
                <div class="col-xs-12 col-sm-8" id="shop">
                    <select class="form-control chosen-select selectpicker" name="row[shop_id]" data-rule="required" id="c-shop_id"  data-live-search="true">
                        <option value="0">请选择店铺</option>
                        {!empty($shop)}
                            {foreach $shop as $val}
                                <option value="{$val.shop_id}">{$val.shop_name}</option>
                            {/foreach}
                        {/if}
                    </select>
                </div>
            </div>
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">{:__('Goods_main_pic')}:</label>
                <div class="col-xs-12 col-sm-8">
                    <div class="input-group">
                        <input id="c-work_image" data-rule="required" class="form-control form-control" size="50" name="row[goods_main_pic]" type="text" value="">
                        <div class="input-group-addon no-border no-padding">
                            <span><button type="button" id="plupload-work_image" class="btn btn-danger plupload" data-input-id="c-work_image" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="false" data-preview-id="p-work_image" data-url="{:url('ajax/upload')}?type=task"><i class="fa fa-upload"></i> {:__('Upload')}</NOtton></span>
                            <span><button type="button" id="fachoose-work_image" class="btn btn-primary fachoose" data-input-id="c-work_image" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</NOtton></span>
                        </div>
                        <span class="msg-box n-right" for="c-work_image"></span>
                    </div>
                    <ul class="row list-inline plupload-preview" id="p-work_image"></ul>
                </div>
            </div>

            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">{:__('示范图')}:</label>
                <div class="col-xs-12 col-sm-8">
                    <!--<div class="input-group">-->
                        <!--<input id="c-sihf_image" data-rule="required" class="form-control form-control" size="50" name="row[goods_main_pic]" type="text" value="">-->
                        <!--<div class="input-group-addon no-border no-padding">-->
                            <!--<span><button type="button" id="plupload-sihf_image" class="btn btn-danger plupload" data-input-id="c-work_image" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="false" data-preview-id="p-work_image"><i class="fa fa-upload"></i> {:__('Upload')}</NOtton></span>-->
                            <!--<span><button type="button" id="fachoose-sihf_image" class="btn btn-primary fachoose" data-input-id="c-work_image" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</NOtton></span>-->
                        <!--</div>-->
                        <!--<span class="msg-box n-right" for="c-work_image"></span>-->
                    <!--</div>-->
                    <!--<ul class="row list-inline plupload-preview" id="p-sihf_image"></ul>-->

                    <a target="_blank" href="/static/img/shifangtu.png">  <img src="/static/img/shifangtu.png" height="100px" width="100px"/></a>
                </div>
            </div>
<!--             <div class="form-group">
                <label for="c-local-2" class="control-label col-xs-12 col-sm-2">{:__('Goods_main_pic')}:</label>
                <div class="col-xs-12 col-sm-8">
                    <button id="plupload-local2" type="button"  class="btn btn-primary plupload"  data-multiple="true" data-preview-id="c-preview-2" data-input-id="c-local-2" data-url="{:url('ajax/upload')}"><i class="fa fa-upload"></i> 本地上传</button>
                </div>
            </div>
            <div class="form-group" >
                <label for="c-local-2" class="control-label col-xs-12 col-sm-2">图片:</label>
                <div class="col-xs-12 col-sm-8">
                    <input type="hidden" name="row[goods_main_pic]" id="c-local-2" class="form-control"  value="" />
                    <div id="c-preview-2">

                    </div>
                </div>
            </div> -->
            <!-- <div class="form-group" style="text-align: center;">
                <button type="button" class="btn btn-success btn-md" id="next_1" >下一步</button>
            </div> -->
        </div>
        <div id='module' class="tab-pane fade in">
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">{:__('Pay_type')}:</label>
                <div class="col-xs-12 col-sm-8">
                    <label class="control-label">卖家直付</label>
                </div>
            </div>
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">{:__('Goods_url')}:</label>
                <div class="col-xs-12 col-sm-8">
                    <input id="c-goods_url" data-rule="required" class="form-control form-control" name="row[goods_url]" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">{:__('Goods_sno')}:</label>
                <div class="col-xs-12 col-sm-8">
                    <input id="c-goods_sno" data-rule="required" class="form-control form-control" name="row[goods_sno]" type="text">
                </div>
            </div>
            <div class="form-group" id="c_beat_price">
                <label class="control-label col-xs-12 col-sm-2">{:__('Beat_price')}:</label>
                <div class="col-xs-12 col-sm-8">
                    <input id="c-beat_price" data-rule="required" class="form-control form-control" step="0.01" name="row[beat_price]" type="number">
                </div>
            </div>
            <div class="form-group" id="c_service_change_price">
                <label class="control-label col-xs-12 col-sm-2">{:__('客服改价')}:</label>
                <div class="col-xs-12 col-sm-8">
                    <input id="c-service_change_price"  class="form-control form-control" step="0.01" name="row[service_change_price]" type="number">
                </div>
            </div>
           <!--  <div class="form-group" style="text-align: center;">
                <button type="button" class="btn btn-primary btn-md" id="last_1" >上一步</button>
                <button type="button" class="btn btn-success btn-md" id="next_2" >下一步</button>
            </div> -->
        </div>
        <div id='others' class="tab-pane fade in">
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">{:__('Task_type')}:</label>
                <div class="col-xs-12 col-sm-8">
                    <div class="radio">
                        <label for="task_type_1">
                            <input id="task_type_1" checked="checked" name="row[task_type]" type="radio" value="1"> 精刷单</label>
                        <label for="task_type_2"><input id="task_type_2" name="row[task_type]" type="radio" value="2"> 隔日单</label>
                        <label for="task_type_3"><input id="task_type_3" name="row[task_type]" type="radio" value="3"> 流量单</label>
                    </div>
                </div>
            </div>
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">{:__('排名方式')}:</label>
                <div class="col-xs-12 col-sm-8">
                    <select class="form-control" name="row[ranking_type]" data-rule="required" id="c-ranking_type">
                        <option value="1">按综合排序</option>
                        <option value="2">按人气排序</option>
                        <option value="3">按销量排序</option>
                        <option value="4">按信用排序</option>
                        <option value="5">按价格（低--高）排序</option>
                        <option value="6">按价格（高--低）排序</option>
                        <option value="7">按总价（低--高）排序</option>
                        <option value="8">按总价（高--低）排序</option>
                    </select>
                </div>
            </div>
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">{:__('Price_limit')}:</label>
                <div class="col-xs-12 col-sm-8">
                    <input id="c-beat_price" class="form-control form-control" style="width: 150px;display: inline-block;" step="0.01" name="row[down]" type="number">
                    至<input id="c-beat_price" class="form-control form-control" style="width: 150px;display: inline-block;" step="0.01" name="row[up]" type="number">
                </div>
            </div>
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">{:__('主款浏览时间')}:</label>
                <div class="col-xs-12 col-sm-8">
                    <select class="form-control" name="row[browse_time]" data-rule="required" id="c-browse_time">
                        <option value="1">不限</option>
                        <option value="2">1-3分钟</option>
                        <option value="3">3-5分钟</option>
                        <option value="4">5-8分钟</option>
                    </select>
                </div>
            </div>
            <div class="form-group">
                <div class="col-xs-12 col-sm-6">
                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-4">{:__('is_collect_shop')}:</label>
                        <div class="col-xs-12 col-sm-8">
                            <div class="radio">
                                <label for="is_collect_shop_1">
                                    <input id="is_collect_shop_1"  name="row[is_collect_shop]" type="radio" value="1"> 是</label>
                                <label for="is_collect_shop_2"><input id="is_collect_shop_2" name="row[is_collect_shop]" checked="checked" type="radio" value="2"> 否</label>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="col-xs-12 col-sm-6">
                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-4">{:__('Is_collect_goods')}:</label>
                        <div class="col-xs-12 col-sm-8">
                            <div class="radio">
                                <label for="Is_collect_goods_1"><input id="Is_collect_goods_1"  name="row[is_collect_goods]" type="radio" value="1"> 是</label>
                                <label for="Is_collect_goods_2"><input id="Is_collect_goods_2" name="row[is_collect_goods]" type="radio" checked="checked" value="2"> 否</label></div>
                        </div>
                    </div>
                </div>

            </div>
            <div class="form-group">
                <div class="col-xs-12 col-sm-6">
                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-4">{:__('Is_add_goods')}:</label>
                        <div class="col-xs-12 col-sm-8">
                            <div class="radio">
                                <label for="Is_add_goods_1"><input id="Is_add_goods_1"  name="row[is_add_goods]" type="radio" value="1"> 是</label>
                                <label for="Is_add_goods_2"><input id="Is_add_goods_2" name="row[is_add_goods]" checked="checked" type="radio" value="2"> 否</label>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="col-xs-12 col-sm-6">
                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-4">{:__('Is_fake_check')}:</label>
                        <div class="col-xs-12 col-sm-8">
                            <div class="radio">
                                <label for="is_fake_check_1"><input id="is_fake_check_1"  name="row[is_fake_check]" type="radio" value="1"> 是</label>
                                <label for="is_fake_check_2"><input id="is_fake_check_2" name="row[is_fake_check]" checked="checked" type="radio" value="2"> 否</label>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <div class="form-group">
                <div class="col-xs-12 col-sm-6">
                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-4">{:__('Is_good_evalute')}:</label>
                        <div class="col-xs-12 col-sm-8">
                            <div class="radio">
                                <label for="Is_good_evalute_1"><input id="Is_good_evalute_1"  name="row[is_good_evalute]" type="radio" value="1"> 是</label>
                                <label for="Is_good_evalute_2"><input id="Is_good_evalute_2" name="row[is_good_evalute]" checked="checked" type="radio" value="2"> 否</label>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="col-xs-12 col-sm-6">
                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-4">{:__('Is_review')}:</label>
                        <div class="col-xs-12 col-sm-8">
                            <div class="radio"><label for="is_review_1"><input id="is_review_1"  name="row[is_review]" type="radio" value="1"> 是</label>
                                <label for="is_review_2"><input id="is_review_2" name="row[is_review]" type="radio" checked="checked" value="2"> 否</label>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <div class="form-group">
                <div class="col-xs-12 col-sm-6">
                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-4">{:__('Is_review_slide_show')}:</label>
                        <div class="col-xs-12 col-sm-8">
                            <div class="radio">
                                <label for="is_review_slide_show_1"><input id="is_review_slide_show_1"  name="row[is_review_slide_show]" type="radio" value="1"> 是</label>
                                <label for="is_review_slide_show_2"><input id="is_review_slide_show_2" name="row[is_review_slide_show]" checked="checked" type="radio" value="2"> 否</label></div>
                        </div>
                    </div>
                </div>
                <div class="col-xs-12 col-sm-6">
                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-4">{:__('Is_need_send')}:</label>
                        <div class="col-xs-12 col-sm-8">
                            <div class="radio">
                                <label for="is_need_send_1"><input id="is_need_send_1"  name="row[is_need_send]" type="radio" value="1"> 是</label>
                                <label for="is_need_send_2"><input id="is_need_send_2" name="row[is_need_send]" type="radio" checked="checked" value="2"> 否</label></div>
                        </div>
                    </div>
                </div>
            </div>
            <div class="form-group" >
                <div id="key_word">
                    <div id="key_1">
                        <div class="col-xs-12 col-sm-6">
                            <div class="form-group">
                                <label class="control-label col-xs-12 col-sm-4">{:__('搜索关键字')}:</label>
                                <div class="col-xs-12 col-sm-4">
                                    <input id="" data-rule="required" class="form-control form-control" name="row[key_word][]" type="text">
                                </div>
                            </div>
                        </div>
                        <div class="col-xs-12 col-sm-6">
                            <div class="form-group">
                                <label class="control-label col-xs-12 col-sm-4">{:__('任务数量')}:</label>
                                <div class="col-xs-12 col-sm-4">
                                    <input id="" data-rule="required" class="form-control form-control" name="row[task_num][]" type="num">
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="form-group">
                    <label class="control-label col-xs-12 col-sm-2"></label>
                    <div>
                        <button type="button" class="btn btn-info" style="margin-left: 30px" id="add_key">添加关键词</button>
                        <button type="button" class="btn btn-danger" style="margin-left: 10px" id="del_key">删除关键词</button><br/>
                    </div>
                </div>
            </div>
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">{:__('评价内容')}:</label>
                <div class="col-xs-12 col-sm-8">
                    <textarea id="c-content_praise" class="form-control form-control" name="row[content_praise]" rows="5"></textarea>
                </div>
            </div>
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">{:__('Other_requirement')}:</label>
                <div class="col-xs-12 col-sm-8">
                    <textarea id="c-other_requirement" class="form-control form-control" name="row[other_requirement]" rows="5"></textarea>
                </div>
            </div>
            <input type="hidden" name="row[type]" id="type">
           <!-- <div class="form-group" style="text-align: center;" >
                <div class="col-xs-12 col-sm-8">

                      <button type="button" class="btn btn-primary btn-md" id="last_2" >上一步</button>
                    <button type="button" class="btn btn-default " id="draft">保存草稿</button>
                    <button type="button" class="btn btn-success btn-embossed" id="ok">{:__('OK')}</button>
                    <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
                </div>
            </div> -->
        </div>
    </div>
</form>